package com.aman.ui;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.view.View;

import com.aman.popup.PopupWindowActivity;
import com.aman.transformer.sample.R;
import com.aman.ui.bottomsheet.BottomSheetActivity;
import com.aman.ui.marquee.MarqueeActivity;
import com.aman.ui.nikoladespotoski.OverScrollScalingViewAppBarLayoutBehaivorActivity;
import com.aman.ui.producttour.SplashActivity;
import com.aman.ui.subtransformer.acitvities.TopActivity;


public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
        setSupportActionBar(toolbar);
    }

    public void onTransFormer(View view) {
        switch (view.getId()) {
            case R.id.Parallax:
                startActivity(new Intent(this, ParallaxActivity.class));
                break;
            case R.id.NetEase:
                startActivity(new Intent(this, NetEaseActivity.class));
                break;
            case R.id.Parallax2:
                startActivity(new Intent(this, ParallaxActivity2.class));
                break;
            case R.id.ImageShow:
                startActivity(new Intent(this, ImageShowActivity.class));
                break;
            case R.id.Transformer:
                startActivity(new Intent(this, TransformersActivity.class));
                break;
            case R.id.Banner:
                startActivity(new Intent(this, com.aman.ui.banner.MainActivity.class));
                break;
            case R.id.LoopPager:
                startActivity(new Intent(this, LoopPagerActivity.class));
                break;
            case R.id.Splash:
                startActivity(new Intent(this, SplashActivity.class));
                break;
            case R.id.TedBottomPicker:
                startActivity(new Intent(this, com.aman.ui.tedbottompicker.MainActivity.class));
                break;
            case R.id.ExtTransformer:
                startActivity(new Intent(this, TopActivity.class));
                break;
            case R.id.BackgroundTransformer:
                startActivity(new Intent(this, com.aman.ui.bgtransformer.MainActivity.class));
                break;
            case R.id.MiniDrawer:
                startActivity(new Intent(this, com.aman.ui.mininavigationdrawer.MainActivity.class));
                break;
            case R.id.SwipeBack:
                startActivity(new Intent(this, com.aman.ui.swipeback.MainActivity.class));
                break;
            case R.id.BootSheet:
                startActivity(new Intent(this, BottomSheetActivity.class));
                break;
            case R.id.SwipeDelete:
                startActivity(new Intent(this, com.aman.ui.itemtouchhelperextension.MainActivity.class));
                break;
            case R.id.Marquee:
                startActivity(new Intent(this, MarqueeActivity.class));
                break;
            case R.id.Animator:
                startActivity(new Intent(this, com.aman.animationplayground.main.MainActivity.class));
                break;
            case R.id.FlipAnimator:
                startActivity(new Intent(this, com.aman.flipanimation.MainActivity.class));
                break;
            case R.id.Spring:
                startActivity(new Intent(this, com.aman.ui.appbarlayout_spring_extension.MainActivity.class));
                break;
            case R.id.OverScrollScalingViewAppBarLayoutBehaivorActivity:
                startActivity(new Intent(this, OverScrollScalingViewAppBarLayoutBehaivorActivity.class));
                break;
            case R.id.popup:
                startActivity(new Intent(this, PopupWindowActivity.class));
                break;
        }
    }
}
